package com.atguigu.commonutils;

/**
 * 返回结果编码
 *
 * @author zhangsj
 * @date 2020/7/1 23:12
 */
public enum ResultCode {

    /**
     * 成功返回码
     */
    SUCCESS(20000, "成功"),
    ERROR(20001, "失败");

    private Integer code;
    private String desc;

    ResultCode(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
